package com.example.cofeed.adapter;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.cofeed.R;
import com.example.http.MineTab;

/**
 * Created by mqwang on 2017/11/15.
 */

public class MineAdapter extends BaseQuickAdapter<MineTab, BaseViewHolder> {

    public MineAdapter() {
        super(R.layout.item_list_mine);
    }

    @Override
    protected void convert(BaseViewHolder helper, final MineTab item) {


        helper.setText(R.id.tv_title, item.getTitle());

        Glide.with(mContext).load(item.getIcon2()).into((ImageView) helper.getView(R.id.iv_pic));

        helper.setVisible(R.id.view_lie, helper.getAdapterPosition() < mData.size() - 1);
    }


}
